/*
 * @Author: Liz.Zheng
 * @Date: 2021-10-11 11:43:13
 * @LastEditTime: 2021-11-08 18:43:57
 * @LastEditors: Liz.Zheng
 * @Description: 路由器
 * @Motto: Write the code. Change the world.
 */
import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";

import routes from "./router.config";
import store from "@/store";
const router = createRouter({
  history: import.meta.env.ELECTRON ? createWebHashHistory() : createWebHistory(),
  routes,
});
export default router;
